package com.jeesite.modules.entity;

/**
 * 登录用户信息类
 * 用于存储在ThreadLocal中的用户信息
 */
public class LoginUser {
    
    private Long userId;
    private String username;
    
    public LoginUser() {}
    
    public LoginUser(Long userId, String username) {
        this.userId = userId;
        this.username = username;
    }
    
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Override
    public String toString() {
        return "LoginUser{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                '}';
    }
}